package ynu.sxp.demoapp.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ynu.sxp.demoapp.entity.Food;

import java.util.List;
import java.util.UUID;

@Repository
public interface FoodRepository extends JpaRepository<Food, UUID> {
    Food findByFoodNameAndBusinessId(String foodName, Integer businessId);
    List<Food> findByBusinessId(Integer businessId);
}